<!--- ==================================================
NAME:		input_get_contact_messages.cfm
DESC:		The XML for XTI needed to retrieve messages specific to a contact.
=================================================== --->

<cfparam name="attributes.customerid" type="any" default="">
<cfparam name="attributes.message_type" type="any" default="">
<cfparam name="attributes.orderid" type="any" default="">
<cfparam name="attributes.invoice_number" type="any" default="">
<cfparam name="attributes.permanent" type="any" default="">
<cfparam name="attributes.security_level" type="any" default="">
<cfparam name="attributes.ipostal_code" type="any" default="">
<cfparam name="attributes.user" type="any" default="">
<cfparam name="attributes.contactid" type="any" default="">

<cfscript>
xml = 
'<!DOCTYPE copy SYSTEM "#attributes.dtd#">
<xtiinput>
   <inputheader>
      <actionset>
         <action>get_messages</action>
      </actionset>
   </inputheader>
   <inputdata>
      <customerid>#ucase(attributes.customerid)#</customerid>
      <msg>
         <message_type>#attributes.message_type#</message_type>
         <orderid>#attributes.orderid#</orderid>
         <invoice_number>#attributes.invoice_number#</invoice_number>
         <permanent>#attributes.permanent#</permanent>
         <security_level>#attributes.security_level#</security_level>
         <user>#attributes.user#</user>
		 <contactid>#attributes.contactid#</contactid>
      </msg>
   </inputdata>
</xtiinput>';
</cfscript>